//
//  MoreGrids.m
//  __PRODUCTNAME__
//
//  Created by dllo on 16/08/30
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "MoreGrids.h"
#import "MoreGoodies.h"

@implementation MoreGrids
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"goodies"]) {
        NSMutableArray *goodies = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            MoreGoodies *moreGoodies = [MoreGoodies modelWithDic:dic];
            [goodies addObject:moreGoodies];
        }
        _goodies = goodies;
    }
}



+ (NSDictionary *)objectClassInArray{
    return @{@"goodies" : [MoreGoodies class]};
}

@end
